<?php
session_cache_expire(999999999);
if(!isset($_SESSION)) 
{ 
session_start(); 
} 
/*echo $_REQUEST['pro_id'];
echo $_REQUEST['project_name'];
echo $_REQUEST['project_manager'];
echo $_REQUEST['pro_description'];
echo $_REQUEST['start_date'];
echo $_REQUEST['complete_date'];
echo $_REQUEST['pro_status'];*/
include "../../operations/connection.php";
	
try {
	$checkExsit = mysql_query("select * from pr_project where NameProject='".$_REQUEST['val']."' and IDProject != ".$_REQUEST['id']);
	if(mysql_num_rows($checkExsit)>0){
		echo 1;
	}
} catch (Exception $e) {
	mysql_close($connection);
}

mysql_close($connection);

?>